package com.yzd.learnjava.holding;

import com.yzd.learnjava.util.Print;

public class StackTest {

	public static void main(String[] args) {
		Stack<String> stack = new Stack<String>();
		for(String s : "My dog has fleas".split(" ")) {
			stack.push(s);
		}
		
		while(!stack.isEmpty()) {
			Print.print(stack.pop() + " ");
		}
		
		java.util.Stack<String> stack2 = new java.util.Stack<String>();
	}
}
